var http = require("http");
var router = require('./router.js');

http.createServer(function (req, resp) {
    req.setEncoding("utf-8");
    resp.writeHead(200, {
        'Content-Type': 'text/html; charset=utf-8'
    });
    router.route(req, resp);
}).listen(3000);